Optimal. Leaf size=69 \[ \frac{\tan ^4(a+b x)}{4 b}+\frac{2 \tan ^2(a+b x)}{b}-\frac{\cot ^4(a+b x)}{4 b}-\frac{2 \cot ^2(a+b x)}{b}+\frac{6 \log (\tan (a+b x))}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0459103, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.176, Rules used = {2620, 266, 43} \[ \frac{\tan ^4(a+b x)}{4 b}+\frac{2 \tan ^2(a+b x)}{b}-\frac{\cot ^4(a+b x)}{4 b}-\frac{2 \cot ^2(a+b x)}{b}+\frac{6 \log (\tan (a+b x))}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2620
Rule 266
Rule 43
Rubi steps
\begin{align*} \int \csc ^5(a+b x) \sec ^5(a+b x) \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^4}{x^5} \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac{\operatorname{Subst}\left (\int \frac{(1+x)^4}{x^3} \, dx,x,\tan ^2(a+b x)\right )}{2 b}\\ &=\frac{\operatorname{Subst}\left (\int \left (4+\frac{1}{x^3}+\frac{4}{x^2}+\frac{6}{x}+x\right ) \, dx,x,\tan ^2(a+b x)\right )}{2 b}\\ &=-\frac{2 \cot ^2(a+b x)}{b}-\frac{\cot ^4(a+b x)}{4 b}+\frac{6 \log (\tan (a+b x))}{b}+\frac{2 \tan ^2(a+b x)}{b}+\frac{\tan ^4(a+b x)}{4 b}\\ \end{align*}
Mathematica [A] time = 0.0283338, size = 91, normalized size = 1.32 \[ 32 \left (-\frac{\csc ^4(a+b x)}{128 b}-\frac{3 \csc ^2(a+b x)}{64 b}+\frac{\sec ^4(a+b x)}{128 b}+\frac{3 \sec ^2(a+b x)}{64 b}+\frac{3 \log (\sin (a+b x))}{16 b}-\frac{3 \log (\cos (a+b x))}{16 b}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 90, normalized size = 1.3 \begin{align*}{\frac{1}{4\,b \left ( \sin \left ( bx+a \right ) \right ) ^{4} \left ( \cos \left ( bx+a \right ) \right ) ^{4}}}-{\frac{1}{2\,b \left ( \sin \left ( bx+a \right ) \right ) ^{4} \left ( \cos \left ( bx+a \right ) \right ) ^{2}}}+{\frac{3}{2\,b \left ( \sin \left ( bx+a \right ) \right ) ^{2} \left ( \cos \left ( bx+a \right ) \right ) ^{2}}}-3\,{\frac{1}{b \left ( \sin \left ( bx+a \right ) \right ) ^{2}}}+6\,{\frac{\ln \left ( \tan \left ( bx+a \right ) \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.972823, size = 124, normalized size = 1.8 \begin{align*} -\frac{\frac{12 \, \sin \left (b x + a\right )^{6} - 18 \, \sin \left (b x + a\right )^{4} + 4 \, \sin \left (b x + a\right )^{2} + 1}{\sin \left (b x + a\right )^{8} - 2 \, \sin \left (b x + a\right )^{6} + \sin \left (b x + a\right )^{4}} + 12 \, \log \left (\sin \left (b x + a\right )^{2} - 1\right ) - 12 \, \log \left (\sin \left (b x + a\right )^{2}\right )}{4 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.94674, size = 397, normalized size = 5.75 \begin{align*} \frac{12 \, \cos \left (b x + a\right )^{6} - 18 \, \cos \left (b x + a\right )^{4} + 4 \, \cos \left (b x + a\right )^{2} - 12 \,{\left (\cos \left (b x + a\right )^{8} - 2 \, \cos \left (b x + a\right )^{6} + \cos \left (b x + a\right )^{4}\right )} \log \left (\cos \left (b x + a\right )^{2}\right ) + 12 \,{\left (\cos \left (b x + a\right )^{8} - 2 \, \cos \left (b x + a\right )^{6} + \cos \left (b x + a\right )^{4}\right )} \log \left (-\frac{1}{4} \, \cos \left (b x + a\right )^{2} + \frac{1}{4}\right ) + 1}{4 \,{\left (b \cos \left (b x + a\right )^{8} - 2 \, b \cos \left (b x + a\right )^{6} + b \cos \left (b x + a\right )^{4}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24231, size = 375, normalized size = 5.43 \begin{align*} \frac{\frac{{\left (\frac{28 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac{288 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} - 1\right )}{\left (\cos \left (b x + a\right ) + 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}} + \frac{28 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} - \frac{{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + \frac{32 \,{\left (\frac{84 \,{\left (\cos \left (b x + a\right ) - 1\right )}}{\cos \left (b x + a\right ) + 1} + \frac{126 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{2}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{2}} + \frac{84 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{3}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{3}} + \frac{25 \,{\left (\cos \left (b x + a\right ) - 1\right )}^{4}}{{\left (\cos \left (b x + a\right ) + 1\right )}^{4}} + 25\right )}}{{\left (\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} + 1\right )}^{4}} + 192 \, \log \left (\frac{{\left | -\cos \left (b x + a\right ) + 1 \right |}}{{\left | \cos \left (b x + a\right ) + 1 \right |}}\right ) - 384 \, \log \left ({\left | -\frac{\cos \left (b x + a\right ) - 1}{\cos \left (b x + a\right ) + 1} - 1 \right |}\right )}{64 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]